package com.michael.study.customview.draw

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.michael.study.customview.R
import com.michael.study.customview.databinding.ActivityAnimationBinding
import com.michael.study.customview.databinding.ActivityDrawGrahicsBinding
import com.michael.study.library.utils.Actions

/**
 * https://qijian.blog.csdn.net/article/details/50995268
 */
class DrawGraphicActivity : AppCompatActivity(), View.OnClickListener {

    private lateinit var mBinding : ActivityDrawGrahicsBinding

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mBinding = ActivityDrawGrahicsBinding.inflate(layoutInflater)
        setContentView(mBinding.root)
        title = "绘图"
        mBinding.btnBasic.setOnClickListener(this)
        mBinding.btnPathText.setOnClickListener(this)
        mBinding.btnRegion.setOnClickListener(this)
        mBinding.btnCanvas.setOnClickListener(this)

    }

    override fun onClick(v: View?) {
        when(v?.id) {
            R.id.btn_basic -> {
            }

            R.id.btn_path_text -> {
            }

            R.id.btn_region -> {
            }

            R.id.btn_canvas -> {
            }
        }
    }
}